/* +----------------------------------------------------------------------
| 麦沃德科技赋能开发者，助力中小企业发展 
+----------------------------------------------------------------------
| Copyright (c) 2017～2024  www.wdadmin.cn    All rights reserved.
+----------------------------------------------------------------------
| 沃德代驾系统并不是自由软件，不加密，并不代表开源，未经许可不可自由转售和商用
+----------------------------------------------------------------------
| Author: MY WORLD Team <bd@maiwd.cn>   www.wdadmin.cn
+----------------------------------------------------------------------
| 司机端接口列表文件 开发者: 麦沃德科技-半夏
+---------------------------------------------------------------------- */

export default {
	// 用户信息
	user: {
		url: '/api/wddj/driver/user_wechat/center',
		auth: true,
		method: 'GET',
	},
	// 用户手机号
	getMobile: {
		url: '/api/wddj/driver/user_wechat/get_mobile',
		auth: true,
		method: 'GET',
	},
	// 代驾中心
	driverCenter: {
		// 配置信息
		info: {
			url: '/api/wddj/driver/driver/center',
			auth: true,
			method: 'GET',
		},
		// 更新司机位置
		update: {
			url: '/api/wddj/driver/driver/update_lng_lat',
			auth: true,
			method: 'POST',
		},
		// 操作接单状态
		operate: {
			url: '/api/wddj/driver/driver/operate',
			auth: true,
			method: 'POST',
		},
	},
	// 开通区域
	address: {
		// 获取省份
		province: {
			url: '/api/wddj/city/select_province',
			auth: false,
			method: 'GET',
		},
		// 获取城市
		city: {
			url: '/api/wddj/city/select_city',
			auth: false,
			method: 'GET',
		},
		// 获取区县
		area: {
			url: '/api/wddj/city/select_area',
			auth: false,
			method: 'GET',
		},
	},
	// 订单中心
	order: {
		// 抢单列表
		grabList: {
			url: '/api/wddj/driver/order/grab_list',
			auth: true,
			method: 'GET',
		},
		// 抢单
		grabOrder: {
			url: '/api/wddj/driver/order/grab_orders',
			auth: true,
			method: 'POST',
		},
		// 预估价格-替乘客下单
		estimatedAmount: {
			url: '/api/wddj/user/operation/cost_allocation/get_estimated_amount',
			auth: true,
			method: 'GET',
		},
		// 创建订单-替乘客下单
		create: {
			url: '/api/wddj/driver/order/mobile_report_order',
			auth: true,
			method: 'POST',
		},
		// 乘客支付状态-替乘客下单
		createPaymentStatus: {
			url: '/api/wddj/driver/order/mobile_report_order_payment_status',
			auth: true,
			method: 'GET',
		},
		// 计价规则
		pricingRules: {
			url: '/api/wddj/user/operation/cost_allocation/pricing_rules',
			auth: true,
			method: 'GET',
		},
		// 订单列表
		list: {
			url: '/api/wddj/driver/order/index',
			auth: true,
			method: 'GET',
		},
		// 订单详情
		details: {
			url: '/api/wddj/driver/order/details',
			auth: true,
			method: 'GET',
		},
		// 取消订单
		cancel: {
			url: '/api/wddj/driver/order/cancel',
			auth: true,
			method: 'POST',
		},
		// 到达出发点
		arrived: {
			url: '/api/wddj/driver/order/arrived',
			auth: true,
			method: 'POST',
		},
		// 确认手机尾号
		confirmMobile: {
			url: '/api/wddj/driver/order/confirm_mobile_tail_number',
			auth: true,
			method: 'POST',
		},
		// 开始行程上传图片
		startItineraryPictures: {
			url: '/api/wddj/driver/order/start_itinerary_take_pictures',
			auth: true,
			method: 'POST',
		},
		// 开始行程
		startItinerary: {
			url: '/api/wddj/driver/order/start_itinerary',
			auth: true,
			method: 'POST',
		},
		// 定时提交路线
		submitRoute: {
			url: '/api/wddj/driver/distance_calculations/submit',
			auth: true,
			method: 'POST',
		},
		// 中途等待
		waiting: {
			url: '/api/wddj/driver/waiting_time/waiting_midway',
			auth: true,
			method: 'POST',
		},
		// 继续行程
		continue: {
			url: '/api/wddj/driver/waiting_time/continue_journey',
			auth: true,
			method: 'POST',
		},
		// 结束行程
		endItinerary: {
			url: '/api/wddj/driver/order/arrive_at_destination',
			auth: true,
			method: 'POST',
		},
		// 乘客补差二维码
		awaitingPaymentCode: {
			url: '/api/wddj/driver/order/awaiting_payment_scan',
			auth: true,
			method: 'GET',
		},
		// 乘客补差支付状态
		awaitingPaymentStatus: {
			url: '/api/wddj/driver/order/awaiting_payment_payment_status',
			auth: true,
			method: 'GET',
		},
	},
	// 钱包管理
	wallet: {
		// 钱包信息
		info: {
			url: '/api/wddj/driver/wallet/center',
			auth: true,
			method: 'GET',
		},
		// 立即提现
		withdrawal: {
			url: '/api/wddj/driver/withdrawal/submit',
			auth: true,
			method: 'POST',
		},
		// 提现记录
		record: {
			url: '/api/wddj/driver/income_expenditure/index',
			auth: true,
			method: 'GET',
		},
		// 审核列表
		examineList: {
			url: '/api/wddj/driver/withdrawal/examine_list',
			auth: true,
			method: 'GET',
		},
		// 发起转账
		transferBills: {
			url: '/api/wddj/driver/withdrawal/transfer_bills',
			auth: true,
			method: 'POST',
		},
	},
	// 实名认证
	authentication: {
		// 提交认证
		submit: {
			url: '/api/wddj/driver/certified_driving_agent/submit',
			auth: true,
			method: 'POST',
		},
		// 认证详情
		details: {
			url: '/api/wddj/driver/certified_driving_agent/details',
			auth: true,
			method: 'GET',
		},
	},
	// 驾照类型
	licenseType: {
		url: '/api/wddj/config/driver_license_type',
		auth: false,
		method: 'GET',
	},
	// 安全中心
	security: {
		url: '/api/wddj/driver/security_center/center',
		auth: true,
		method: 'GET',
	},
	// 统计数据
	statistics: {
		url: '/api/wddj/driver/order/statistics',
		auth: true,
		method: 'GET',
	},
	// 协议
	agreement: {
		url: '/api/wddj/protocol/driver_side_protocol/index',
		auth: false,
		method: 'GET',
	},
};